package cn.magic0610.realtime;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.weather.WeatherChangeEvent;

public class WeatherEvent implements Listener {
    @EventHandler
    public void Weather (WeatherChangeEvent event) {
        if (Functions.config.getStringList("no-weather-change.disable-worlds").contains(event.getWorld().getName())) {
            return;
        }
        event.setCancelled(true);
    }
}
